package com.boge.study.staticpackage;
/**
 * 两个不同的main方法，相当于两个进程，不共享内存，main方法运行完后回释放资源
 * @author boge
 *
 */
public class Static1 {
	public static int a = 1;
	public static void main(String[] args) {
//		a =2;
//		System.out.println(a);
		
		Static1 static1 = new Static1();
		static1.test1();
		static1.test2();
		
	}
	
	private void test1() {
		a = 3;
		System.out.println(a);
	}
	
	private void test2() {
		System.out.println(a);
		a = 5;
		System.out.println(a);
	}
	
}
